import { useMutation } from "@tanstack/react-query";
import { request } from "../api/request";
import { PLAN_URL, RESET_URL } from "../constants/url";
const resetFn = async (e) => {
  //
  const { data } = await request(
    {
      url: RESET_URL,
      method: "get",
      params: {
        ...e,
      },
    },
    true
  );

  return {
    data,
  };
};
export default function useReset(e) {
  return useMutation(["plan", e], resetFn);
}
